package util

import (
	"math/rand"
	"time"
	"fmt"
)

// 生成6位随机数字
func SixVerificationCode() string {
	rnd := rand.New(rand.NewSource(time.Now().UnixNano()))
	vcode := fmt.Sprintf("%06v", rnd.Int31n(1000000))
	return vcode
}
